package com.mine.dubbo.common;

import com.mine.dubbo.netty.server.Server;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 启动回调类
 *
 * @author wang
 */
@Component
public class MyApplicationRunner implements ApplicationRunner {
    @Autowired
    private Server server;

    @Override
    public void run(ApplicationArguments args) {
        System.out.println("启动成功");
        server.run();
    }
}
